{% load staticfiles %}
{% load endless %}

{% paginate contents %}
{% for content in contents %}

<article class="{% if forloop.first %}first{% else %}after-first{% endif %}">
	<header>
	<h2> <a href="#">  </a> </h2>
	</header>

	<div class="badge-post-container post-container ">
		<a href="#">
			<img class="badge-item-img" src="{% static "" %}contents/contentPics/{{ content.content_id }}.png" alt="Srsly, what the f**k" width="550px" height="400px">
		</a>
	</div>

	<p class="points-comments">	
		<a href="#"> 12,304 points</a> .
		<a href="#"> 482 comments</a>
	</p>

<div class="badge-item-vote-container post-afterbar-a in-list-view" ng-controller="LogModalController">
        <div class="vote" ng-controller="voteCommentsController">
            <ul class="btn-vote left">
                <li><a id="up-vote-{{ content.content_id }}" ng-click="{% if not user.is_authenticated %} open() {% else %} upVoteClick({{ content.content_id }}, user) {% endif %}" class="badge-item-vote-up up {% if content.calification == 1 %} active {% endif %}" href="javascript:void(0);">Upvote</a></li>
                <li><a id="down-vote-{{ content.content_id }}" ng-click="downVoteClick({{ content.content_id }}, user)" class="badge-item-vote-down down {% if content.calification == -1 %} active {% endif %}" href="javascript:void(0);">Downvote</a></li>
                <li><a class="comment badge-evt badge-item-comment" target="_blank" href="/gag/abqAye9#comment" data-evt="EntryAction,CommentButtonClicked,ListPage">Comment</a></li>
            </ul>
        </div>
        <div class="share right">
            <ul>
                <li>Facebook</li>

                <li>Tweeter</li>
            </ul>
        </div> 
        <div class="clearfix"></div>
    </div>
</article>

{% endfor %}
{% show_more %}